use crate::resolver::cli_args::CliArgs;
use crate::resolver::config::Config;
use crate::resolver::history_struct::ChangelogHistory;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;

pub mod cli_args;
mod config;
mod generator;
mod handle_before_generate;
mod history_struct;
mod resolve_history;
mod commit_git;

/// 解析器入口
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Resolver {
    /// 命令行参数
    pub cli_args: CliArgs,
    /// 输出路径
    pub path: PathBuf,
    /// 规则配置
    pub config: Config,
    /// 解析历史
    pub history: ChangelogHistory,
}
